var path = require("path");

module.exports = {
    entry: {
        login: path.join(__dirname, "components/libs/Login.ts"),
        common: path.join(__dirname, "components/libs/Common.ts"),
        validate: path.join(__dirname, "components/libs/Validate.ts")
    },
    output: {
        path: path.join(__dirname, "components/libs/dist"),
        filename: "[name].dist.js"
    },
    resolve: {
        extensions: [".js"]
    },
    module: {
        rules: [{
            test: /\.ts$/,
            loader: 'ts-loader',
            exclude: /node_modules/
        }]
    },
    externals: {
        'vue': 'Vue',
        'vue-class-component': 'VueClassComponent',
        'component-decorators': 'ComponentDefineDecorator'
    }
};